import request from '@/axios'
import type { TableData } from './types'

export const getTableListApi = (params: any) => {
  return request.get({ url: '/system/lecturer/apply/list', params })
}

export const identityExamineApi = (data: any): Promise<IResponse<TableData>> => {
  return request.put({ url: '/system/lecturer/apply/check', data })
}






export const examinePlayerApi = (params: any): Promise<IResponse<TableData>> => {
  return request.post({ url: '/identity/approve/player', data: params })
}

export const examineCoachApi = (params: any): Promise<IResponse<TableData>> => {
  return request.post({ url: '/identity/approve/coach', data: params })
}

export const examineRefereeApi = (params: any): Promise<IResponse<TableData>> => {
  return request.post({ url: '/identity/approve/referee', data: params })
}

export const examineScoutApi = (params: any): Promise<IResponse<TableData>> => {
  return request.post({ url: '/identity/approve/scout', data: params })
}

export const rejectExamineApi = (id: any): Promise<IResponse<TableData>> => {
  return request.post({ url: '/identity/approve/reject', data: { id } })
}
